package com.mariusz.managers;

import com.mariusz.data.dto.Rentier;
import com.mariusz.data.reports.PaymentReport;

public class ReportManager {
	static ReportManager instnace = new ReportManager();
	
	public static ReportManager getInstance(){
		return instnace;
	}
	private ReportManager(){
		
	}
	
	public void printPaymentReport(Rentier rentier){
		PaymentReport report = new PaymentReport(rentier);
		report.preparePdf();
		report.print();
	}
	
	public void savePaymentReport(Rentier rentier, String file){
		PaymentReport report = new PaymentReport(rentier);
		report.preparePdf();
		report.exportTo(file);
	}
}
